package com.shuoren.roomtemperaturecloud.repository;


import com.shuoren.roomtemperaturecloud.entity.SystemUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;



/**
 * @Author: chenkai
 * @Date: 2018/12/26 14:53
 */
@Repository
public class UserRepository  {
    @Autowired
    MongoTemplate mongoTemplate;

    public SystemUser save(SystemUser user) {
        SystemUser insert = mongoTemplate.insert(user);
        return insert;
    }

}
